<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="container">

        <div class="mudle">

            <a>
                <h4>我是你大爷，你最好老实点，不然打死你</h4>
            </a>
        </div>

    </div>

</body>
<style>
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font: 14px/1.5 "Microsoft Yahei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
        color: #333;
    }

    .container {
        width: 500px;
        height: 700px;
        background-color: pink;
    }

    .container .mudle {
        width: 200px;
        height: 100px;
        background-color: skyblue;
    }

    .container .mudle a {
        display: block;
        height: 100%;
        text-decoration: none;

    }

    .container .mudle a h4 {
        height: 100px;
        /* width: 200px; */
        margin: 0cqb 20px 0;
        font-size: 14px;
        font-weight: 400;
        /* 1. 不允许文字换行  强制文字一行显示*/
        white-space: nowrap;
        /* 2. 溢出隐藏 */
        overflow: hidden;
        /* 3. 文字溢出用省略号代替 */
        text-overflow: ellipsis;
    }
</style>

</html>